home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!news
- From: Bradd W. Szonye <bradds@ix.netcom.com>
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
- Subject: RE: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
- Date: 19 Apr 1996 09:05:00 GMT
- Organization: Netcom
- Message-ID: <01bb2dcf.9445c060$c6c2b7c7@Zany.localhost>
- References: <JSA.96Feb16135027@organon.com> <dewar.829079393@schonberg> <4kf5mrINN47r@keats.ugrad.cs.ubc.ca> <dewar.829135457@schonberg> <4kgmlpINN7aj@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: det-mi6-06.ix.netcom.com
- X-NETCOM-Date: Fri Apr 19 4:05:00 AM CDT 1996
- X-Newsreader: Microsoft Internet News
-
- Do what I do in this situation. Think about the problem and try to decide
- what makes the most sense. If it doesn't make sense, look it up. If your
- first attempt doesn't work, look it up. If you don't find the answer in
- you compiler's manuals (note the *comiler's*, not the standards, because
- few compilers are all that conformant), use a different function. Write
- your own. Write a letter to your senator. Whatever.
-
- For comparison, consider other functions that fill buffers, like sprintf
- or scanf. They don't take a byte count at all. They just assume that the
- programmer has the sense to provide a buffer big enough for the data you
- ask for. Providing a length argument doesn't change this kind of common
- sense.
-
- Bradd
-
-
-